package com.xzc.lease.common.exception;

import com.xzc.lease.common.result.ResultCodeEnum;
import lombok.Data;

/**
 * @author 徐生
 * 2024/10/8
 */
@Data
public class LeaseException extends RuntimeException {
    private Integer code;

    public LeaseException(ResultCodeEnum resultCodeEnum) {
        super(resultCodeEnum.getMessage());
        this.code = resultCodeEnum.getCode();
    }
}
